package com.github.base.vo.log;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

@Data
public class LogListVO {
    /**
     * 主键id
     */
    @Schema(description = "主键id")
    private Long id;

    /**
     * 模块
     */
    @Schema(description = "模块")
    private String module;

    /**
     * 动作 增删改
     */
    @Schema(description = "动作 增删改")
    private String action;

    /**
     * 是否成功 1-是 0-否
     */
    @Schema(description = "是否成功 1-是 0-否")
    private Integer success;

    /**
     * 操作人
     */
    @Schema(description = "操作人")
    private String operator;

    /**
     * 请求方法
     */
    @Schema(description = "请求方法")
    private String method;

    /**
     * 请求参数
     */
    @Schema(description = "请求参数")
    private String params;

    /**
     * 请求ip
     */
    @Schema(description = "请求ip")
    private String ip;

    /**
     * 耗时
     */
    @Schema(description = "耗时")
    private String time;

    /**
     * 状态 1-正常 0-删除
     */
    @Schema(description = "状态 1-正常 0-删除")
    private Integer state;

    /**
     * 创建时间
     */
    @Schema(description = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    /**
     * 异常堆栈
     */
    @Schema(description = "异常堆栈")
    private String stackTrace;
}
